package com.yx.frame.jdbc;

import org.json.JSONObject;
import com.yx.frame.util.ZipUtils;

public final class Row extends JSONObject {
	public Row() {		
	}
	public final String getAt(String columnName){
		try{
			return getString(columnName);
		}catch(Exception e){
			return null;
		}
	}

	public final void unzip(String columnName) throws Exception {	
		String zipValue = getAt(columnName);
		if(zipValue==null)return;
		zipValue = ZipUtils.gunzip(zipValue);
		put(columnName, zipValue);		
	}
}
